package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String role;  // ADMIN、USER、RIDER
    private String nickname;
    private String email;
    private String description;
    private Integer score;
    private String avatar;  // 头像路径url
    private String status;  // 状态：ACTIVE、BANNED

    private Integer version;
}